package com.auto.code.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.auto.code.dao.DBInfoDAO;
import com.auto.code.domain.DBInfoDO;
import com.auto.code.mapper.DBInfoMapper;

import java.util.List;
import java.util.Map;

@Repository
public class DBInfoDAOImpl implements DBInfoDAO{
	
	@Autowired
	private DBInfoMapper dBInfoMapper;
	
	@Override
	public int deleteById(Long id) {
		return dBInfoMapper.deleteById(id);
	}

	@Override
	public int insert(DBInfoDO record) {
		return dBInfoMapper.insert(record);
	}

	@Override
	public DBInfoDO getById(Long id) {
		return dBInfoMapper.getById(id);
	}

	@Override
	public int update(DBInfoDO record) {
		return dBInfoMapper.update(record);
	}

	@Override
	public List<DBInfoDO> queryList(Map<String, Object> params) {
		return dBInfoMapper.queryList(params);
	}

}